package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.Model;


/**
 * 
 * @author Hussien
 * @return class tag has only one attribute and has a toString method to view to 
 * the user the tag name
 *
 */
@Entity
public class Tag extends Model {
	public String tag;
    @ManyToMany
	  public List<User> toBeNotified;

	public Tag(String tag) {
		this.tag = tag;
		toBeNotified = new ArrayList<User>();
	}

	@Override
	public String toString() {
		return this.tag;
	}
}